<?php
require_once('pworks/mvc/IFilter.iface.php');
//require_once('pworks/db/DaoFactory.class.php');
require_once('pworks/common/cache/impl/ApcCache.class.php');

class DaoInitFilter implements IFilter{
    public function before(IAction &$action){
        //TODO get parameter from app.xml and set it as cache prefix 
        //DaoFactory::setCache(new ApcCache());
        $daoCfgFile = FrontController::getConfHelper()->getGlobal('dao-config-file');
        //DaoFactory::config($daoCfgFile);
//        DaoFactory::dump();exit;        
        return null;
    }

	public function after(IAction &$action){
	    return null;
	}
}
